﻿using Microsoft.AspNetCore.Razor.TagHelpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ReaWTM.LayuiHelper
{
	public static class TagHelperOutputExtension
	{

		public static TagHelperOutput SetAutocomplete(this TagHelperOutput self, string url)
		{
			self.Attributes.Add("autocomplete", string.IsNullOrEmpty(url) ? "on" : "off");
			return self;
		}
	}
}
